package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName(value = "vehicle")
public class Vehicle {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆识别码
     */
    @TableField(value = "vin")
    private String vin;

    /**
     * 车型ID
     */
    @TableField(value = "vehicle_model_id")
    private Integer vehicleModelId;

    /**
     * 车主ID
     */
    @TableField(value = "owner_id")
    private Integer ownerId;

    /**
     * 租凭日期
     */
    @TableField(value = "leased_date")
    private Date leasedDate;

    /**
     * 车辆颜色
     */
    @TableField(value = "color")
    private String color;

    /**
     * 车辆状态
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private String brand;
}